package com.wang.cloud.manage.convert;

import com.wang.cloud.manage.domain.co.SysUserAddCo;
import com.wang.cloud.manage.domain.co.SysUserUpdateCo;
import com.wang.cloud.manage.domain.entity.PlatformUserEntity;
import com.wang.cloud.manage.domain.vo.*;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 * 系统平台用户信息表
 * </p>
 *
 * @author wy
 * @since 2024-07-16
 */
@Mapper(componentModel = "spring")
public interface PlatformUserConvertor {

    SysUserPageVo entityToSysPageVo(PlatformUserEntity entity);

    SysUserDetailVo entityToSysDetailVo(PlatformUserEntity entity, List<RoleNameVo> roles);

    PlatformUserPageVo entityToPageVo(PlatformUserEntity entity);

    PlatformUserVo entityToVo(PlatformUserEntity entity);

    PlatformUserEntity addCoToEntity(SysUserAddCo addCo);

    PlatformUserEntity updateCoToEntity(SysUserUpdateCo updateCo);

}
